﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Word = Microsoft.Office.Interop.Word;
using Scrt;

namespace WordAddIn2010
{
    public static class gValue
    {
        public const int GROUP_MAX_COUNT = 3;

        /// <summary>
        /// 配置文件名称
        /// </summary>
        public const string SFT_CFG_FILE_NAME = "cfg.ini";
        /// <summary>
        /// 配置
        /// </summary>
        public const string SFT_CFG = "CFG";
        /// <summary>
        /// 配置-日期
        /// </summary>
        public const string SFT_CFG_TODAY = "TODAY";
        /// <summary>
        /// 是否有新版本
        /// </summary>
        public const string SFT_CFG_HAS_NEW_VERSION = "HAS_NEW_VERSION";
        /// <summary>
        /// 日期字符串格式
        /// </summary>
        public const string STR_DATE_TIME_FORMAT = "yyyy-M-dd";
        /// <summary>
        /// 使用中的加载项文件名
        /// </summary>
        public const string TEMPLATE_FILE_NAME = "MathPhyChe.dotx";
        /// <summary>
        /// 原始加载项文件名
        /// </summary>
        public const string TEMPLATE_ORIGINAL_FILE_NAME = "dotx.bin";
        /// <summary>
        /// 使用手册文件名
        /// </summary>
        public const string USER_GUID_FILE = "理科辅助软件使用说明.pdf";
        /// <summary>
        /// 软件名称
        /// </summary>
        public const string SOFTWARE_NAME = "MathPhyChe";
        /// <summary>
        /// 工作室名称
        /// </summary>
        public const string STUDIO_NAME = MSG_TITLE;
        /// <summary>
        /// 消息提醒标题
        /// </summary>
        public const string MSG_TITLE = "鸟哥私人办公助理";
        /// <summary>
        /// 按钮前缀
        /// </summary>
        public const string BTN_ID_SUFFIX = "rookiebtnid";
        /// <summary>
        /// 软件信息所在网址
        /// </summary>
        public const string URL_INFO = "";
        /// <summary>
        /// 购买宝贝的网址
        /// </summary>
        public const string URL_ITEM_PURCHASE = "https://item.taobao.com/item.htm?spm=a1z10.1-c.w4004-13399165596.11.FOl8ZP&id=528711915729";
        /// <summary>
        /// 软件介绍地址
        /// </summary>
        public const string URL_SOFT_INFO = "http://my.oschina.net/raoqiangnihao/blog/661362";
        /// <summary>
        /// 软件名称
        /// </summary>
        public static SoftNameDef SoftName = SoftNameDef.HighSchoolScienceTool;
        /// <summary>
        /// word软件实例
        /// </summary>
        public static Word.Application WordApp;
        /// <summary>
        /// 软件注册类
        /// </summary>
        public static SoftwareRegister SoftReg = new SoftwareRegister(SoftName);
        /// <summary>
        /// 类型字典
        /// </summary>
        public static Dictionary<string, int> Dic_Cate;
        /// <summary>
        /// 注册结果，默认为未注册
        /// </summary>
        public static RegisterResult RegRsult = RegisterResult.FAILED;
        /// <summary>
        /// 软件配置所在路径
        /// </summary>
        public static string SftCfgBaseDir;
        /// <summary>
        /// 软件下载地址
        /// </summary>
        public static string SftwareDownloadUrl = "";
    }
}
